using System;
using System.Collections.Generic;
using System.Text;
using BusinessObjects.BO_Actions;
using Entity.StoreProcedure;
using BusinessObjects;
using System.Data;
namespace BusinessObjects.BO_GetObjects {
	public static class BO_portal_articles_processing {
		public static DataTable SelectAll() {
			try {
				usp_portal_articles_processing_select_all entity = new usp_portal_articles_processing_select_all();

				return BO_Actions<usp_portal_articles_processing_select_all>.ExecuteAndReturnDataTable(entity);
			} catch (Exception ex) {
				throw ex;
			}
		}
		public static DataTable SelectTop(int rows) {
			try {
				usp_portal_articles_processing_select_top entity = new usp_portal_articles_processing_select_top();
				entity.NUMBERRECORD = rows;

				return BO_Actions<usp_portal_articles_processing_select_top>.ExecuteAndReturnDataTable(entity);
			} catch (Exception ex) {
				throw ex;
			}
		}
		public static string Insert( Int64 article_id, int process_id, string process_by, DateTime processs_date, string notes) {
			try {
				usp_portal_articles_processing_insert entity = new usp_portal_articles_processing_insert();
                entity.ARTICLE_ID = article_id;
                entity.PROCESS_ID = process_id;
                entity.PROCESS_BY = process_by;
                entity.PROCESSS_DATE = processs_date;
                entity.NOTES = notes;

				return BO_Actions<usp_portal_articles_processing_insert>.ExecuteAndReturnStringValue(entity);
			} catch (Exception ex) {
				throw ex;
			}
		}
	}
}

